/* 头部样式开始 */
.header {
    width: 100%;
    height: 40px;
    line-height: 40px;
    background-color: #333;
}

.wrap {
    width: 1226px;
    margin: 0 auto;
}

.header-left {
    float: left;
}

.header-right {
    float: right;
}

.header li {
    position: relative;
    float: left;
    height: 40px;
}

.header a {
    color: #b0b0b0;
    font-size: 12px;
}

.header a:hover {
    color: #fff;
}

.header span {
    color: #424242;
    margin: 0 3.6px;
    font-size: 12px;
}

/* 购物车 */
.cart {
    position: relative;
    width: 120px;
    height: 40px;
    background-color: #424242;
    margin-left: 25px;
    cursor: pointer;
}

.cart:hover {
    background-color: #fff;
}

.cart:hover>a {
    color: #ff6700;
}

.cart-list {
    z-index: 950;
    position: absolute;
    right: 0;
    top: 40px;
    width: 316px;
    height: 0;
    line-height: 100px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
    color: #424242;
    font-size: 12px;
    transition: all .3s;
    overflow: hidden;
}

.cart:hover>.cart-list {
    height: 100px;
}

/* 下载APP */
.download {
    z-index: 900;
    position: absolute;
    top: 40px;
    left: 50%;
    margin-left: -62px;
    width: 124px;
    height: 0;
    background-color: #fff;
    box-shadow: 0 1px 5px #aaa;
    overflow: hidden;
    transition: all .3s;
}

.download>img {
    width: 90px;
    margin: 18px 0 12px;
}

.download>p {
    color: #333;
    font-size: 14px;
    line-height: 1;
}

.header-left>li:hover>.download {
    height: 148px;
}

/* 头部结束 */
/* 导航开始 */
.nav {
    position: relative;
    width: 100%;
    height: 100px;
    background-color: #fff;
}

.logo {
    float: left;
    width: 234px;
    height: 100px;
    text-align: left;
}

.nav-bar {
    float: left;
    width: 696px;
    height: 100px;
}

.search {
    position: relative;
    float: left;
    width: 296px;
    height: 50px;
    margin-top: 25px;
}

.logo>img {
    width: 56px;
    margin-top: 22px;
}

.nav-bar>ul>li {
    float: left;
}

.nav-bar>ul>li>a {
    display: block;
    padding: 38px 10px;
    color: #333;
}

.nav-bar>ul>li>a:hover {
    color: #ff6700;
}

/* 下拉列表 */
.nav-bar-list {
    z-index: 850;
    display: none;
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    height: 229px;
    border-top: 1px solid #e0e0e0;
    background-color: #fff;
    box-shadow: 0 3px 4px rgba(0, 0, 0, .18);
}

.nav-bar li:hover>.nav-bar-list {
    display: block;
}

.nav-bar-list li {
    width: 204px;
    padding-top: 35px;
    float: left;
}

.nav-bar-img {
    width: 203px;
    height: 110px;
    border-right: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.nav-bar-list p {
    line-height: 20px;
    font-size: 12px;
    color: #333;
}

.nav-bar-list p:last-of-type {
    color: #ff6700;
}
.nav-bar-list li:last-child .nav-bar-img {
    border-right: none;
}

/* 搜索框 */
.search input {
    float: left;
    width: 223px;
    height: 48px;
    padding: 0 10px;
    border: 1px solid #e0e0e0;
    border-right: none;
    outline: none;
    transition: all .2s;
}

.search button {
    float: left;
    width: 52px;
    height: 50px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    transition: all .2s;
}

.search button:hover {
    background-color: #ff6700;
    border-color: #ff6700;
    color: #fff;
}

.search input:hover, .search input:hover+button {
    border-color: #b0b0b0;
}

.search input:focus, .search input:focus+button {
    border-color: #ff6700;
}

.hot-list {
    z-index: 800;
    display: none;
    position: absolute;
    left: 0;
    top: 50px;
    width: 243px;
    height: 240px;
    border: 1px solid #ff6700;
    border-top: none;
    background-color: #fff;
}

.hot-list>a {
    display: block;
    color: #424242;
    font-size: 12px;
    padding: 6px 15px;
    text-align: left;
    height: 18px;
}

.hot-list>a:hover {
    background-color: #e0e0e0;
}

.search input:focus~.hot-list {
    display: block;
}

/* 导航结束 */
/* banner开始 */
.banner {
    width: 100%;
    height: 460px;
}

.banner-box {
    position: relative;
    width: 100%;
    height: 460px;
}
.banner-carousel{
    width: 1226px;
    height: 460px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;

}
.banner-carousel ul {
    width: 3500px;
    height: 460px;
    position: absolute;
    left: 0;
    top: 0;
}
.banner-carousel ul li{
    float: left;
    width: 1226px;
    height: 460px;
}
.banner-carousel ul li a img{
    width: 100%;
    height: 100%;
}
.banner-carousel>a{
    width: 20px;
    height: 40px;
    position: absolute;
    top:50%;
    transform: translateY(-50%);
    background-color: rgba(50,50,50,.5);
    color:#fff;
    text-align: center;
    line-height: 2;
    font-size:20px;
}
.banner-carousel>a.left{
    left: 235px;
}
.banner-carousel>a.right{
    right: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 234px;
    height: 420px;
    padding: 20px 0;
    background-color: rgba(105, 101, 101, .6);
}

.slide>ul>li {
    height: 42px;
    line-height: 42px;
    padding-left: 30px;
    text-align: left;
    cursor: pointer;
}

.slide>ul>li:hover {
    background-color: #ff6700;
}

.slide>ul>li>a {
    color: #fff;
    font-size: 14px;
}

.slide i {
    float: right;
    margin-right: 20px;
    color: #e0e0e0;
    font-size: 14px;
}

.slide-list {
    z-index: 750;
    display: none;
    position: absolute;
    top: 0;
    left: 234px;
    width: 992px;
    height: 456px;
    border: 1px solid #e0e0e0;
    border-left: none;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .18);
    padding-top: 2px;
}

.slide li:hover>.slide-list {
    display: block;
}

.slide-list>ul {
    width: 300px;
    float: left;
}

.slide-list li {
    width: 100%;
    height: 75px;
    padding: 18px 0 18px 20px;
    box-sizing: border-box;
}

.slide-list img {
    position: relative;
    top: -15px;
    margin-right: 12px;
}

.slide-list span {
    color: black;
}

.slide-list li:hover span {
    color: #ff6700;
}

/* banner结束 */
/* 广告开始 */
.adv {
    width: 100%;
    height: 170px;
    margin: 14px 0 26px;
}

.adv-aside {
    float: left;
    width: 228px;
    height: 164px;
    padding: 3px;
    background-color: #5f5750;
}

.adv-img {
    float: left;
    width: 316px;
    height: 170px;
    background-color: red;
    margin-left: 14.66px;
    transition: all .2s linear;
}

.adv-img img {
    width: 100%;
}

.adv-img:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
}

.adv-aside li {
    position: relative;
    float: left;
    width: 76px;
    height: 82px;
}

.adv-aside i {
    margin-bottom: 4px;
    margin-top: 18px;
    display: block;
    font-size: 22px;
}

.adv-aside a {
    display: block;
    color: #fff;
    font-size: 12px;
    opacity: .7;
    transition: all .2s;
}

.adv-aside a:hover {
    opacity: 1;
}

.row::after, .col::before {
    position: absolute;
    content: "";
    background-color: #665e57;
}

.row::after {
    bottom: 0;
    left: 6px;
    height: 1px;
    width: 64px;

}

.col::before {
    right: 0;
    top: 6px;
    width: 1px;
    height: 70px;
}

/* 广告结束 */
/* 主体开始 */
.contant {
    width: 100%;
    background-color: #f5f5f5;
    padding: 4px 0 12px;
    /* 自动找高 */
    overflow: hidden;
}

.home-box {
    width: 100%;
    height: 120px;
    margin: 22px 0;
}

/* 主体结束 */
/* 手机开始 */
.title {
    text-align: left;
    font-size: 22px;
    font-weight: 200;
    color: #333;
    line-height: 58px;
}

.container {
    width: 100%;
    height: 614px;
}

.phone-box-left {
    float: left;
    width: 234px;
    height: 614px;
    transition: all .2s linear;
}

.phone-box-right {
    float: left;
    width: 992px;
    height: 614px;
}

.items {
    float: left;
    width: 234px;
    height: 300px;
    background-color: #fff;
    margin-bottom: 14px;
    margin-left: 14px;
    transition: all .2s linear;
}

.items:hover, .phone-box-left:hover, .items1>div:hover, .video-box li:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
}

.goods-img {
    width: 160px;
    margin: 20px 0 18px;
}

.name, .desc {
    width: 214px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 auto;
}

.name {
    height: 21px;
    margin-bottom: 2px;
    font-size: 14px;
    color: #333;
}

.desc {
    height: 18px;
    color: #b0b0b0;
    font-size: 12px;
    margin-bottom: 10px;
}

.price {
    color: #ff6700;
    font-size: 14px;
}

.prices{
    color: darkgrey;
    font-size: 12px;
    text-decoration-line: line-through;
}

/* 手机样式结束 */
/* 家电样式开始 */
.items-left {
    margin-left: 0;
}

.items1 {
    width: 234px;
    height: 300px;
    float: left;
    margin-left: 14px;
}

.items1>div {
    width: 234px;
    height: 143px;
    background-color: #fff;
    margin-bottom: 14px;
    transition: all .2s linear;
}

/* 家电样式结束 */
/* 页脚样式开始 */
.footer-top {
    background-color: #fff;
}

.footer-bottom {
    background-color: #fafafa;
    padding: 30px 0;
}

.footer-server {
    width: 100%;
    height: 25px;
    line-height: 25px;
    padding: 27px 0;
    border-bottom: 1px solid #e0e0e0;
}

.footer-server li {
    float: left;
    width: 19.8%;
    border-right: 1px solid #e0e0e0;
}

.footer-server li:last-child {
    border-right: none;
}

.footer-server a {
    color: #616161;
    transition: all .2s;
}

.footer-server a:hover {
    color: #ff6700;
}

.footer-server i {
    font-size: 24px;
    margin-right: 6px;
    position: relative;
    top: 2px;
}

.footer-links {
    padding: 40px 0;
    height: 172px;
}

.footer-links ul {
    float: left;
    width: 160px;
    text-align: left;
}

.footer-links li {
    height: 18px;
    margin-top: 10px;
    font-size: 14px;
    color: #424242;
}

.footer-links li:first-child {
    height: 17px;
    margin: -1px 0 26px;
}

.footer-links li a {
    font-size: 12px;
    color: #757575;
}

.footer-links li a:hover {
    color: #ff6700;
}

.contact {
    float: right;
    width: 251px;
    height: 111px;
    border-left: 1px solid #e0e0e0;
}

.contact>p:first-of-type {
    font-size: 22px;
    line-height: 22px;
    color: #ff6700;
    margin-bottom: 5px;
}

.contact>p:nth-of-type(2) {
    color: #616161;
    font-size: 12px;
    margin-bottom: 5px;
}

.btn {
    width: 118px;
    height: 28px;
    border: 1px solid #ff6700;
    display: inline-block;
    line-height: 28px;
    background-color: #fff;
    color: #ff6700;
    font-size: 12px;
    transition: all .4s;
}

.btn:hover {
    background-color: #ff6700;
    color: #fff;
}

.contact p:last-of-type {
    position: relative;
    font-size: 12px;
    color: #616161;
    margin-top: 10px;
}

.contact p:last-of-type span {
    position: relative;
    top: -5px;
}

.wb, .wx {
    width: 24px;
    height: 24px;
    background-color: red;
    margin-left: 6px;
    display: inline-block;
}

.wb {
    background: url("../小米商城主页/images/wb.png") no-repeat;
    background-size: 100%;
}

.wb:hover {
    background-image: url("../小米商城主页/images/wb@2x.png");
}

.wx {
    background: url("../小米商城主页/images/wx.png");
    background-size: 100%;
}

.wx:hover {
    background-image: url("../小米商城主页/images/wx@2x.png");
}

.contact img {
    display: none;
    position: absolute;
    top: 22px;
    left: 100px;
    width: 126px;
}

.wx:hover+img {
    display: block;
}

.footer-copyright {
    margin-top: 200px;
    margin-right: 30px;
}

.footer-copyright p {
    color: #6c757d;
    text-decoration: none;
}


.footer-copyright p {
    margin-bottom: 12px;
}

/* 页脚样式结束 */
/* 固定定位样式开始 */
.fixed{
    position: fixed;
    right: 0;
    bottom: 70px;
    width: 84px;
    height: 455px;
    background-color: white;
}
/* 固定定位样式结束 */

.content{
    z-index: 1;
    width: 1260px;
    height: 480px;
    margin: 20px auto;
    position: relative;
}
#item{
    /*z-index: 1;*/
    width: 100%;
    height: 100%;
}
.item{
    /*z-index: 1;*/
    position: absolute;
    opacity: 0;
    transition: all 1s;
}
.item.active{
    opacity: 1;
}
img{
    width: 100%;
}
#btn-left{
    width: 30px;
    height:50px;
    text-align: center;
    font-size: 30px;
    color: #C1B7AF;
    /*background-color: rgba(0,0,0,0.4);*/
    /*line-height: 50px;*/
    z-index: 1;
    position: absolute;
    left: 250px;
    top: 42%;
    cursor: pointer;
}
#btn-left:hover{
    background-color: rgba(0,0,0,0.2);
}
#btn-right{
    width: 30px;
    height:50px;
    text-align: center;
    font-size: 30px;
    color: #C1B7AF;
    z-index: 1;
    position: absolute;
    right: 0;
    top: 43%;
    cursor: pointer;
}
#btn-right:hover{
    background-color: rgba(0,0,0,0.2);
}
#circle{
    height: 20px;
    display: flex;
    position: absolute;
    bottom: 30px;
    right: 30px;
}
.circle{
    width: 5px;
    height: 5px;
    border-radius: 10px;
    border: 2px #555657 solid;
    cursor: pointer;
    margin: 5px;
}
.white{
    background-color: blue;
}